<?php
$id = $epg['id'];
$data = json_decode(file_get_contents('http://nine.ifeng.com/phtvperiodlist?from='.date('Y-m-d').'&to='.date('Y-m-d')));
$date = date('Y-m-d');
$data = $data->data->$date->$id;
for($i = 0; $i <= count($data) - 1; $i++) {
    echo '<li><span>'.$data[$i]->time.'&nbsp&nbsp&nbsp&nbsp'.$data[$i]->title.'</span></li>';
};